package com.dy.service;

import com.dy.entity.Cinema;
import com.dy.entity.Order;
import com.dy.service.impl.FeignCinemaServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Auther: dy
 * @Date: 2022/4/16 - 04 - 16 - 13:06
 * @Description: com.dy.service
 * @version: 1.0
 */
@FeignClient(name = "cinema",fallback = FeignCinemaServiceImpl.class)
public interface IFeignCinemaService {
    @GetMapping("/cinema/refreshCinema")
    public List<Cinema> refreshCinema();

    @PostMapping("/cinema/deadOrder")
    public void getOrder(@RequestBody Order order);
}
